package syntaxcolor.v4.syntaxcolor.rule;

import org.eclipse.swt.custom.StyleRange;


/**
 * 模式规则的一个实例，结束符之一为换行符
 * 
 * @author wyl
 */
public class SingleLineRule extends PatternRule {

  public SingleLineRule(String name, String startStr, String endStr,
      char escapChar, StyleRange style) {
    super(name, startStr, new String[] { endStr, "\n" }, escapChar, style);
  }

	public SingleLineRule(String name, String startStr, StyleRange style) {
    super(name, startStr, new String[] { "\n" }, '\0', style);
  }
}
